<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-environment-edit" th:object="${environment}">
            <input id="lgcPk" name="lgcPk" th:field="*{lgcPk}"  type="hidden">
<!--             <div class="form-group">	
                <label class="col-sm-3 control-label">项目编号：</label>
                <div class="col-sm-8">
                    <input id="prjId" name="prjId" th:field="*{prjId}" class="form-control" type="text">
                </div>
            </div> -->
            <div class="form-group">	
                <label class="col-sm-3 control-label">项目名称：</label>
                <div class="col-sm-8">
                    <input id="prjNm" name="prjNm" th:field="*{prjNm}" class="form-control" type="text" disabled="disabled">
                </div>
            </div>
<!--             <div class="form-group">	
                <label class="col-sm-3 control-label">开发流编号：</label>
                <div class="col-sm-8">
                    <input id="dvlpstrmId" name="dvlpstrmId" th:field="*{dvlpstrmId}" class="form-control" type="text">
                </div>
            </div> -->
            <div class="form-group">	
                <label class="col-sm-3 control-label">开发流名称：</label>
                <div class="col-sm-8">
                    <input id="dvlpstrmNm" name="dvlpstrmNm" th:field="*{dvlpstrmNm}" class="form-control" type="text" disabled="disabled">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">版本日期：</label>
                <div class="col-sm-8">
                    <input id="vrsnDt" name="vrsnDt" th:field="*{vrsnDt}" class="form-control" type="text" disabled="disabled">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">部署单元：</label>
                <div class="col-sm-8">
                    <input id="relsUit" name="relsUit" th:field="*{relsUit}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">版本机IP：</label>
                <div class="col-sm-8">
                    <input id="vrsnIp" name="vrsnIp" th:field="*{vrsnIp}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">服务启动端口：</label>
                <div class="col-sm-8">
                    <input id="serstrPort" name="serstrPort" th:field="*{serstrPort}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">目标版本包：</label>
                <div class="col-sm-8">
                    <input id="tagvrsnPag" name="tagvrsnPag" th:field="*{tagvrsnPag}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">目标版本包路径：</label>
                <div class="col-sm-8">
                    <input id="tagvrsnPagRte" name="tagvrsnPagRte" th:field="*{tagvrsnPagRte}" class="form-control" type="text">
                </div>
            </div>
<!--              <div class="form-group">	
                <label class="col-sm-3 control-label">是否在自动版本中生效(0:生效 1:未生效)：</label>
                <div class="col-sm-8">
                    <input id="valid" name="valid" th:field="*{valid}" class="form-control" type="text">
                </div>
            </div>  -->
            <div class="form-group">	
                <label class="col-sm-3 control-label">是否在自动版本中生效(0:生效 1:未生效)：</label>
                <div class="col-sm-8">
                    <!-- <input id="valid" name="valid" th:field="*{valid}" class="form-control" type="text"> -->
                    <select id="valid" name="valid" class="form-control" th:field="*{valid}" th:with="type=${@dict.getType('valid')}">
					  <option th:selected="${valid eq dict.dictValue}"
					  		  th:each="dict : ${type}" 
					  		  th:value="${dict.dictValue}" 
					  		  th:text="${dict.dictLabel}">
					  </option>
					</select>
                </div>
            </div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/environment"
		$("#form-environment-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-environment-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
